/**
 * There are code generation
 */
package com.neusoft.lohas.modules.ivm.dao.merchant;

import org.springframework.stereotype.Repository;

import com.neusoft.lohas.common.persistence.BaseDao;
import com.neusoft.lohas.common.persistence.Parameter;
import com.neusoft.lohas.modules.ivm.entity.merchant.ActivityPoster;
import com.neusoft.lohas.modules.ivm.entity.merchant.Merchant;

/**
 * 活动海报DAO接口
 * @author Jackie.Liu
 * @version 2014-10-30
 */
@Repository
public class ActivityPosterDao extends BaseDao<ActivityPoster> {

	public ActivityPoster findByMerchantId(String merchantId) {
		return getByHql("from ActivityPoster where merchant.id = :p1 and delFlag = :p2", new Parameter(merchantId, Merchant.DEL_FLAG_NORMAL));
	}
	
}
